package Structure.PipeFilterStructure.Design;

import java.util.ArrayList;
public abstract class Pipe {
    protected Filter filter;
    public void register_out_filter(Filter filter){
        this.filter=filter;
    }
    public void receive(ArrayList<ArrayList<String>> words){
        filter.perform(words);
    }
}
